package com.cloud.service.impl;

import com.cloud.dao.PaymentDao;
import com.cloud.pojo.Payment;
import com.cloud.service.IPaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentService implements IPaymentService {

    @Autowired
    private PaymentDao paymentDao;

    @Override
    public int savePayment(Payment payment) {
        return paymentDao.savePayment(payment);
    }

    @Override
    public Payment queryById(String id) {
        return paymentDao.queryById(id);
    }
}
